<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p>比较/逻辑运算符</p>
<p th:if="10>5">10大于5</p>
<p th:if="10 &gt; 6">10大于6</p>
<p th:if="10 &gt; 2 and 5!=6">10大于2,并且5!=6</p>
<p th:if="not(false)">not(false)=true</p>
<p th:if="!(false)">!(false)=true</p>
<p th:if="${isLogin}">已经登陆</p>
<p th:if="not(${isLogin})">没有登陆</p>
</body>
</html>